]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
weather: Provide application-id and contact-info
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 12 Jan 2021 16:31:15 +0000 (17:31 +0100)
committerMarge Bot <marge-bot@gnome.org>
Wed, 13 Jan 2021 21:03:35 +0000 (21:03 +0000)
Those are now required in order to use any online providers.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3577

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1565>

js/misc/weather.js

index 0c293bf253ec8501a305c981efc21bd38af0081e..a8b8f6cacd1a6f8011359d0a04a35db3da03e905 100644 (file)
@@ -72,7 +72,11 @@ var WeatherClient = class {
             GWeather.Provider.METAR |
             GWeather.Provider.MET_NO |
             GWeather.Provider.OWM;
-        this._weatherInfo = new GWeather.Info({ enabled_providers: providers });
+        this._weatherInfo = new GWeather.Info({
+            enabled_providers: providers,
+            application_id: 'org.gnome.Shell',
+            contact_info: 'https://gitlab.gnome.org/GNOME/gnome-shell/-/raw/master/gnome-shell.doap',
+        });
         this._weatherInfo.connect_after('updated', () => {
             this._lastUpdate = GLib.DateTime.new_now_local();
             this.emit('changed');